<template>
  <footer>
    <hr>
    <div class="download-guide">
      <router-link to="/download">
        <p class="download">
          下载简书，创作你的创作
        </p>
      </router-link>
    </div>
  </footer>
</template>

<script>
export default {
  name: 'HomeFooter'
}
</script>

<style scoped>
  hr {
    height: .2rem;
    background: #f5f5f5;
    border-width: 0;
    margin: 0;
  }
  .download-guide {
    position: relative;
    background: transparent;
    height: 4.6rem;
  }
  .download-guide:before, .download-guide:after {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
  }
  .download-guide:before {
    top: .2rem;
    background-image: linear-gradient(0deg,hsla(0,0%,100%,0),#fff);
  }
  .download-guide:after {
    background-repeat: no-repeat;
    background-position: bottom;
    background-size: contain;
    background-image: url(//cdn2.jianshu.io/asimov/src/assets/image/download-guide.1cef6fa3.png);
    z-index: -1;
  }
  .download {
    position: absolute;
    top: 1.4rem;
    left: 50%;
    margin-left: -2.4rem;
    width: 4.8rem;
    height: .9rem;
    padding: .2rem .6rem;
    font-size: 16px;
    color: #fff;
    background: #ea6f5a;
    box-sizing: border-box;
    text-align: center;
    border-radius: .08rem;
    line-height: 1.6;
  }
</style>
